<?php
    include('_opendb.php');

    $count = $_GET['count'];
    $uname = $_GET['uname'];

    $count++;
    
    $res = mysql_query("SELECT `id` from `user` where name = '$uname' ");

    $uid = mysql_result($res,0,'id');

    mysql_query("UPDATE `user` SET `count` = '$count' where id = '$uid' ");

    include('_closedb.php');
?>